<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!-- CSS 文件 ，不要删，不够自己添加 -->
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../css/bootstrap-table.min.css">
<link rel="stylesheet" href="../assets/css/azzara.min.css">
<link rel="stylesheet" href="../assets/css/demo.css">
<link rel="stylesheet" href="css/buttonlocation.css">
<body>

<!--这里选择的是80%的容器，如果需要100%的话，自己修改一下-->
<div class="container div1">
    <!--内容在这里面添加就好了-->

    <form class="form-inline">
        <input class="form-control" placeholder="输入查询的产品名称" type="text" id="productName">&nbsp;
        登记时间：<input class="form-control" type="date" title="登记开始时间" id="startTime">&nbsp;
        到：<input class="form-control" type="date" title="登记结束时间" id="endTime">&nbsp;
        <input type="button" class="btn btn-primary" value=" 查 询 " onclick="queryLike()">&nbsp;
        <input type="reset" class="btn btn-primary" value=" 清空条件 ">
    </form>
</div><br>
<div class="container div1">
    <table id="applyTable"></table>
</div>

<div class="container div2" style="display: none;">
    <!--内容在这里面添加就好了-->
    <ul style="display:inline" id="ul">
        <li><button id="deleteProduct" class="btn btn-warning" onclick="noAdopt()">不通过</button></li>
        <li><button class="btn btn-primary" onclick="adopt()">通过</button></li>
        <li><button class="btn btn-secondary" onclick="fanhuiliebiao()">返回审核列表</button></li>
    </ul>
    <form id="mApplyForm">
        <table style="width: 100%" class="table table-bordered table-head-bg-info table-bordered-bd-default mt-4">
            <tr align="center"><td colspan="8"><h1>生产计划单</h1></td></tr>
            <tr>
                <td colspan="4" width="50%">登记人：<span id="dengji"></span></td>
                <td colspan="4" width="50%">审核人：<span id="shenhe"></span></td>
            </tr>
            <tr><td colspan="8">&nbsp;</td></tr>
            <tr>
                <td>产品名称</td>
                <td>产品编号</td>
                <td>描述</td>
                <td>数量</td>
                <td>单位</td>
                <td>单价(元)</td>
                <td>小计(元)</td>
            </tr>
            <tbody id="tbody">

            </tbody>
            <tr><td colspan="8">&nbsp;</td></tr>
            <tr>
                <td>备注:</td>
                <td colspan="7" id="remark">

                </td>
            </tr><tr align="center">
                <td>审核意见:</td>
                <td colspan="7">
                    <textarea rows="3" class="form-control" name="checkSuggestion"></textarea>
                </td>
            </tr>
            <tr><td colspan="8">&nbsp;</td></tr>
            <tr>
                <td colspan="4">总件数：<span id="totalCount" style="color: red;"></span></td>
                <td colspan="4">总金额：<span id="totalPrice" style="color: red;"></span>（元）</td>
            </tr>
        </table>
    </form>

</div>

<!--js用到的包，不够在自己添加-->
<script src="../js/jquery.3.2.1.min.js"></script>
<script src="../js/popper.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-table.min.js"></script>
<script src="../js/bootstrap-table-zh-CN.min.js"></script>
<script src="../js/common.js"></script>
<script src="js/scjhsh.js"></script>
</body>
</html>